package cn.tomoki.demo01.service;

import cn.tomoki.demo01.entity.Appoint;

import java.util.Collection;
import java.util.Map;

public interface AppointService {
    //发送所有预约记录
    Collection<Appoint> getAppointAll();
    //按照流水单发送单个预约记录的详细信息
    Map<String, Object> getAppointByMark(int mark);
    //接收预约信息
    int addAppoint(Appoint appoint);
    //确认收货（产品总数要减少）
    int confirmReceipt(int mark);
    //取消预约
    int cancelAppoint(int mark);
}
